﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MetaInterface;

namespace Hi_Baidu.ListType.DetachImage
{
    /// <summary>
    ///     提供了存储分包图片数据的相关操作
    /// </summary>
    class TYPE_DETACH_IMAGE_MESSAGE : IMetaData,ICheckPackage
    {
        public List<TYPE_DETACH_IMAGE_PACKAGE> Members = new List<TYPE_DETACH_IMAGE_PACKAGE>();
        public TYPE_DETACH_IMAGE_MESSAGE(String SessionKey)
        {
            session = SessionKey;
            key = SessionKey;
        }

        private int totalLength;
        /// <summary>
        ///     图片大小
        /// </summary>
        public int TotalLength
        {
            get { return totalLength; }
            set { totalLength = value; }
        }

        private String pID;
        /// <summary>
        ///     本次图片ID
        /// </summary>
        public String PID
        {
            get { return pID; }
            set { pID = value; }
        }

        private String session;
        /// <summary>
        ///     当前会话标示
        /// </summary>
        public String Session
        {
            get { return session; }
            set { session = value; }
        }
        private String username;
        /// <summary>
        ///     用户名
        /// </summary>
        public String Username
        {
            get { return username; }
            set { username = value; }
        }
        private String friendusername;
        /// <summary>
        ///     好友用户名
        /// </summary>
        public String Friendusername
        {
            get { return friendusername; }
            set { friendusername = value; }
        }
        private int total_PackageCount;
        /// <summary>
        ///     当前包总的封包片数量
        /// </summary>
        public int Total_PackageCount
        {
            get { return total_PackageCount; }
            set { total_PackageCount = value; }
        }

        private DateTime sendTime;
        /// <summary>
        ///     发送时间
        /// </summary>
        public DateTime SendTime
        {
            get { return sendTime; }
            set { sendTime = value; }
        }

        #region IMetaData 成员
        private String key;
        public string Key
        {
            get
            {
                return key;
            }
            set
            {
                key = value;
            }
        }

        #endregion

        #region ICheckPackage 成员

        public int[] CheckPackage()
        {
            return new int[] { };
        }

        #endregion
    }
}
